package com.imooc.list_;

import java.util.Vector;

/**
 * @Date:2022/3/31/11:51
 * @Description:
 */
public class Vector_ {
    public static void main(String[] args) {

        Vector<Object> vector = new Vector<>(); //空参的时候就初始化容量了
        Vector<Object> vector2 = new Vector<>(6); //空参的时候就初始化容量了

        for (int i = 0; i < 20; i++) {
            vector.add(i);
            vector2.add(i);

        }

        System.out.println(vector);
    }
}
